home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 February: Tool Chest / Apple Developer CD Series Tool Chest February 1996 (Apple Computer)(1996).iso / Sample Code / AOCE Sample Code / PowerTalk Access Modules / Sample PMSAM / PMSAM Framework / Common / CommonResources.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-28  |  2.2 KB  |  105 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        CommonResources.h
  3.  
  4.     Contains:    All of the custom resources (except errors) for used
  5.                 by the files in "Common" folder.
  6.                 "Include"able in .r and .cp files.  
  7.  
  8.     Written by:    Tim Harnett
  9.  
  10.     Copyright:    © 1994 by Apple Computer, Inc., all rights reserved.
  11.  
  12.     Change History (most recent first):
  13.  
  14.          <3>     2/21/95    TMH        metrowerks changes, add func prototype
  15.          <2>     11/2/94    TMH        added filename to file resource
  16.          <1>     9/27/94    TMH        new 'fldr' and 'file' resources
  17.                  9/23/94    TMH        xxx put comment here xxx
  18.  
  19.     To Do:
  20. */
  21.  
  22. #ifndef __CommonResources__
  23. #define __CommonResources__
  24.  
  25.  
  26. //--------------------------------------------------------------------------
  27. //    'fldr' Resources.  
  28. //    
  29. //    Used to define a full path of a folder.
  30. //    Notes: 1. The folder parent values are taken from CIncludes:Folders.h
  31. //              I invented 'root' this means at the root.
  32. //            
  33. //--------------------------------------------------------------------------
  34.  
  35.  
  36. #define kMaxPathnameLen 255
  37. #define kMaxPathLevels    20
  38.  
  39.  
  40. #ifdef REZ
  41. type 'fldr' {
  42.     literal longint    rootFolder = 'root', 
  43.                     systemFolderType = 'macs',
  44.                     desktopFolderType ='desk',
  45.                     startupFolderType = 'strt',
  46.                     appleMenuFolderType ='amnu',
  47.                     controlPanelFolderType ='ctrl',
  48.                     extensionFolderType = 'extn',
  49.                     preferencesFolderType ='pref',
  50.                     temporaryFolderType ='temp';
  51.     cstring    ;        //pathname
  52.  
  53. };
  54. #endif
  55.  
  56.  
  57. #ifndef REZ
  58.  
  59. //--------------------
  60. //  'C' structure
  61. //--------------------
  62.  
  63. struct FolderSpecResource {            // for 'fldr' resources
  64.     OSType    folderParentType;
  65.     char    folderPath[kMaxPathnameLen];
  66. };
  67. typedef struct FolderSpecResource FolderSpecResource; 
  68.  
  69. #endif
  70.  
  71.  
  72.  
  73. //--------------------------------------------------------------------------
  74. //    'file' Resources.  
  75. //    
  76. //    Used to define a stuff used to create a file
  77. //            
  78. //--------------------------------------------------------------------------
  79.  
  80. #ifdef REZ
  81. type 'file' {
  82.     literal longint;                // file creator
  83.     literal longint;                // file type
  84.     pstring;                        // file Name
  85. };
  86. #endif
  87.  
  88.  
  89. #ifndef REZ
  90.  
  91. //--------------------
  92. //  'C' structure
  93. //--------------------
  94.  
  95. struct FileSpecResource {
  96.     OSType    fileCreator;
  97.     OSType    fileType;
  98.     Str63    filename;
  99. };
  100. typedef struct FileSpecResource FileSpecResource;
  101.  
  102. #endif
  103.  
  104.  
  105. #endif __CommonResources__